package org.jxkj.data;


import org.jxkj.bean.PointData;

import java.util.ArrayList;
import java.util.List;

/**
 * 数据访问接口封装
 */
public interface IDaoProvider {
    public void setWebserviceUrl(String webserviceUrl);
    /**
     * 时间段原始值
     * @param pointName
     * @param startTime 起始天
     * @param endTime 结束时间到当天
     * @return
     * @throws Exception
     */
    List<PointData> getByRegion(String pointName, String startTime, String endTime) throws Exception;

    /**
     * 时间段原始值
     * @param pointName 起始天
     * @param startTime 结束时间戳
     * @param endTime
     * @return
     * @throws Exception
     */
    List<PointData> getByRegionByDay(String pointName, String startTime, String endTime) throws Exception;

    /**
     * 调用webservice 接口获取数据
     * @param pointName
     * @param startTime
     * @param endTime
     * @param interval
     * @return
     * @throws Exception
     */
    ArrayList<PointData> getCompleteData(String pointName, String startTime, String endTime, Integer interval) throws Exception;

    /**
     * 查询5分钟间隔数据
     * @param pointName
     * @param startTime
     * @param endTime
     * @return
     * @throws Exception
     */
    ArrayList<PointData> getCompleteData(String pointName, String startTime, String endTime) throws Exception;
    //依赖webservice
    ArrayList<PointData> getWebData(String pointName, String startTime, String endTime) throws Exception;
    //依赖webservice
    List<PointData> getWebDataAndLast(String pointName, String startTime, String endTime) throws Exception;
}


